





file = open('text.txt','rb')
print(file.read(1))
print(file.read(1))
print(file.tell())
print(file.seek(2,1))

#不需要写close
with open('test111.txt','r',encoding='wtf-8') as file2:
    list2 = file2.readlines()
    print(list2)

    str = "day day up"
    with open('test.txt','w',encoding='utf-8') as file3:
        file3.write(str)

        list3 = ['hello11','world22']
       with open('test.txt','a',encoding='utf-8') as file4:
